﻿@{
    ViewBag.Title = "任务历史列表";
    Layout = "~/Views/Shared/_LayoutDualColumns.cshtml";
}
@using Global.Core.ExtensionMethod
@using Ducu.GLB.Global
@model Ducu.SRV.ViewModel.Task.HistoryListModel
@section PageHeader{
    <span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span><span class="after-glyphicon">@ViewBag.Title</span>
}
@Html.Action("_ShowItem", "Plan", new { id = ViewBag.PlanId })
@foreach (var item in Model.Items)
{
    @Html.Partial("_HistoryItem", item)
}
@Html.Action("_Pager", "Shared", Model.Pager)
<a href="/Task/History/Month/@ViewBag.PlanId/@DateTime.Now.Year/@DateTime.Now.Month" class="btn btn-default btn-block">按月显示完成情况</a>
@section RightPanel{
    <li>
        该页面显示某个目标下所有已经提交的任务的完成情况。所以，无法查看你“没有”交作业的情况。
    </li>
    <li>
        如果要对照查看你的任务完成情况，点击下方<a href="/Task/History/Month/@ViewBag.PlanId/@DateTime.Now.Year/@DateTime.Now.Month">按月显示完成情况</a>链接即可。
    </li>
}
@section scripts{
    <script>
        $(document).ready(function () {
            $("form").prev().append('<a class="comment"><span class="glyphicon glyphicon-share-alt"></span> 留言</a>');
            $(".comment").click(function (event) {
                event.preventDefault();
                $(this).parent().next().show();
            });
            $("form").hide();
        })
    </script>
}